package authdto

import "github.com/gogf/gf/v2/frame/g"

type CMSLoginReq struct {
	g.Meta   `path:"/cmsLogin" method:"post" summary:"cms登录" tags:"账号"`
	UserName string `json:"userName" summary:"用户名"`
	Pwd      string `json:"pwd" summary:"密码"`
}

type CMSLoginRes struct {
	AuthId uint64 `json:"authId"`
	Token  string `json:"token"`
}

func NewCMSLoginRes(userId uint64, token string) *CMSLoginRes {
	return &CMSLoginRes{
		AuthId: userId,
		Token:  token,
	}
}
